package com.qianzhu8.kfc.boot.request;

import com.qianzhu8.kfc.boot.constant.HttpMethodConstants;
import com.qianzhu8.kfc.boot.response.GetKfcOrderByOrderNoResponse;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * 根据订单号获取订单 request
 *
 * @author xuyanjun
 * @date 2020/4/10
 */
@Getter
@Setter
@ToString
@Accessors(chain = true)
public class GetKfcOrderByOrderNoRequest extends BaseRequest<GetKfcOrderByOrderNoResponse> {

    /**
     * 订单号
     */
    private String orderNo;

    /**
     * action
     */
    @Override
    public String getAction() {
        return "/openApi/v1/kfcOrders/getByOrderNo";
    }

    /**
     * method
     */
    @Override
    public String getMethod() {
        return HttpMethodConstants.POST;
    }

    /**
     * responseClass
     *
     * @return responseClass
     */
    @Override
    public Class<GetKfcOrderByOrderNoResponse> getResponseClass() {
        return GetKfcOrderByOrderNoResponse.class;
    }
}
